<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<TITLE>{title} - {SITENAME}</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<meta name="keywords" content="{title},{title}影评,剧情介绍,电影图片,预告片,影讯,论坛">
<meta name="description" content="{title}电影简介和剧情介绍、{title}影评、图片、预告片和论坛推荐">
<LINK rel=stylesheet type=text/css href="{PUB}css/global.css">
<LINK rel=stylesheet type=text/css href="{PUB}css/packed_douban53.css">
<LINK rel=stylesheet type=text/css href="{PUB}css/packed__all12.css">
</head>
<body>
<!-- INCLUDE ../header.htm -->
<script type="text/javascript" src="{PUB}js/jquery.min4.js"></script>
<script type="text/javascript" src="{PUB}js/rating.js"></script>
<script type="text/javascript" src="{PUB}js/dialog.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("a.cTab").click(function (){
		$(".cTab").removeClass("active");
		$(this).addClass("active");			
		$(".cBox").hide();
		var content_show = $(this).attr("title");			
		$("#"+content_show).show();
	});
	$("a.rTab").click(function (){
		$(".rTab").removeClass("active");
		$(this).addClass("active");			
		$(".rBox").hide();
		var content_show = $(this).attr("title");			
		$("#"+content_show).show();
	});
});

function voteComment(cid){
	votes = $.ajax({url:"/movie/comments/vote/" + cid,async:false});
	result = votes.responseText;
	if (result == 'ok'){
		val = parseInt($("#vote_"+cid)[0].value);
		$("#vote_val_"+cid).html(val + 1);
	}else if (result == 'nologin'){
		window.location.href="/login"; 
	}else{
		$.fn.jmodal({title: '短评投票',content: '<BR>'+result+'<BR><BR>'});	
		window.setTimeout($.fn.hideJmodal,700);
	}
}

function checkNum (){
	var text1 = document.getElementById("comment").value;
	if(text1 == '请选择星星给电影评分'){
		document.getElementById("comment").value = '';
	}
	if(text1 == ''){
		document.getElementById("comment").value = '请选择星星给电影评分';
	}
	var len;
	var olen = 140;
	if(text1.length >= olen){
		$("#countTxt").html('<span style="color:red">0</span>');
		document.getElementById("comment").value = text1.substr(0,olen);		
	}else{ 
		$("#countTxt").html('<span style="color:green">'+(olen - text1.length)+'</span>');
	}	   
}

$(function(){if($.browser.msie && $.browser.version == 6.0){
	var maxWidth = parseInt($('#info').css('max-width'));
	if($('#info').width() > maxWidth)
		$('#info').width(maxWidth)
}});

//新增的javascript
function addnew()
        {
            var   ret   =   prompt("请输入内容！","");   
              if   (ret   ==   null)   
              {   
                  return false; 
              }   
              else   if   (ret.replace(/^\s+|\s+$/g,"")   ==   "")   
              {
                alert("输入内容为空！");   
                 return false;
              }
              document.getElementById("TextBox1").value=ret;
        }

</script>

<div id="content">
<h1><span style="float:left">{title}</span><span class="year">&nbsp;({playyear})</span><div class="clear"></div></h1>
<div class="grid-16-8 clearfix">
<div class="article">
<div class="indent">
<div class="subjectwrap clearfix">
	<div class="subject clearfix">
		<div id="mainpic"><a class="nbg" href="{PUB}upload/thumb{thumb}"><img src="{PUB}upload/thumb{thumb}" alt="{title}" height="147" width="100"></a></div>
		<div id="info">
			{descs}
		</div>
	</div>
	<div id="interest_sectl">
		<div class="rating_wrap clearbox">
			<p class="rating_self clearfix">
				<span class="ll bigstar{rating_img}"></span>
				<strong class="ll rating_num">{rating}</strong>
				<span content="10.0"></span>
			</p>
			<p class="rating_self font_normal">(<a href="collections"><span>{ratings}</span>人评价</a>)</p>
		</div>
	</div>
</div>
</div>

<div class="related_info">
	<!--剧情-->
	<h2>剧情简介</h2>
	<div class="indent"><span>{story}</span></div>

	<!--写短评-->	
	<!-- IF myComment -->
	<h2>修改短评</h2>
	<div class="indent"><span>{mtips}</span>
	<script type="text/javascript">
	$(function() {
		$('#rating').raty({
			half: true,
			start:{myComment.rating},
		});
		checkNum();
		{myComment.isWish}
	});	
	function watchAction (id){ 
		if(id == '2'){
			$("#collectBox").hide('fast');
		}else{
			$("#collectBox").show('fast');
		}
	}
	</script>
	<form name="comments" method="post" action="/movie/comments/edit/{myComment.id}">
	<div id="collectBox">我看了，我的评分是：<span id="rating"></span></div>
	<div style="margin-top:10px">
		<div style="float:left;width:100px">
			<label><input type="radio" name="watch_action" value="1"{myComment.collected}onclick="watchAction('1');"/>看了</label>         
			<label><input type="radio" name="watch_action" value="2"{myComment.wished}onclick="watchAction('2');"/>想看</label>
			<div style="margin-top:70px;font-size:14px"><a href="/review/new/{id}/">写详细影评 &raquo;</a></div>			
		</div>
		<div style="float:left;;width:485px;text-align:right">
			<textarea class="textarea" name="content" id="comment" style="width:460px;height:75px;margin:0px" onKeyUp="checkNum()" onblur="checkNum()" onfocus="checkNum()" >{myComment.contents}</textarea>			
			<label style="color:#999;">还能输入 <span id="countTxt" style="font-size:18px;color:green" >140</span> 个字</label>
			<input type="submit" class="btn" value="修改短评"/>
		</div>
	</div>
	</form>
	<!-- ELSE -->
	<h2>写短评……</h2>
	<div class="indent"><span>{mtips}</span>
	<script type="text/javascript">
	$(function() {
		$('#rating').raty({
			half: true,
			click: function(score) {
				document.getElementById("comment").value = '我给电影《{title}》评分是:' + score * 2 + '分。';
			}
		});
	});
	function watchAction (id){ 
		if(id == '2'){
			document.getElementById("comment").value = '我想看电影《{title}》。';
			$("#collectBox").hide('fast');
		}else{
			document.getElementById("comment").value = '请选择星星给电影评分。';
			$("#collectBox").show('fast');
		}
	}
	</script>
	<form name="comments" method="post" action="/movie/comments/new/{id}">
	<div id="collectBox">我看了，我的评分是：<span id="rating"></span></div>
	<div style="margin-top:10px">
		<div style="float:left;width:100px">
			<label><input type="radio" name="watch_action" value="1" checked="checked" onclick="watchAction('1');"/>看了</label>         
			<label><input type="radio" name="watch_action" value="2" onclick="watchAction('2');"/>想看</label>
			<div style="margin-top:70px;font-size:14px"><a href="/review/new/{id}/">写详细影评 &raquo;</a></div>
			
		</div>
		<div style="float:left;;width:485px;text-align:right">
			<textarea class="textarea" name="content" id="comment" style="width:460px;height:75px;margin:0px" onKeyUp="checkNum()" onblur="checkNum()" onfocus="checkNum()" >请选择星星给电影评分</textarea>			
			<label style="color:#999;">还能输入 <span id="countTxt" style="font-size:18px;color:green" >140</span> 个字</label>
			<input type="submit" class="btn" value="写短评"/>
		</div>
	</div>
	</form>
	<!-- ENDIF myComment -->
	<div class="clear"></div>
	</div>

	<!--图片-->
	<h2>电影图片 <span class="pl">(<a href="/movie/{id}/photos">全部 {photos} 张</a>&nbsp;)</span></h2>
	<ul class="pic-col5 clearfix">
	<!-- BEGIN photoList -->
	<li><a href="/photos/{id}/"><img src="{PUB}upload/photos/thumb/{filename}" height=100 width=100 /></a></li>
	<!-- END photoList -->
	</ul>
	
	<h2 class="clearfix"><span class="ll">{title} 的短评</span>
	<a class="rr" href="/movie/{id}/comments">更多 {comments} 条短评 &raquo;</a></h2> 
	<!--简评-->
	<div class="tab_area">
        <ul class="tabs">
            <li><a href="javascript:void(0)" title="cBox_1" class="tab active cTab" onfocus="this.blur()">最新的短评</a></li>
            <li><a href="javascript:void(0)" title="cBox_2" class="tab cTab"  onfocus="this.blur()">朋友的短评</a></li>
        </ul> 		
        <div id="cBox_1" class="content cBox">
			<ul class="simple_list" >	
				<!-- BEGIN comment -->
				<div class='ctsh' style="float:left;margin-bottom:10px;border-bottom:1px #ccc dashed;padding-bottom:10px">
					<div style="float:left;width:55px;padding-top:5px">
						<a href="/people/{uid}/" ><img class="pil" src="{profile_image_url}"/></a> <!-- 原来的{PUB}avatars/{avatars}-->
					</div>
					<div style="float:right;;width:535px;">
						<div class="clearfix">
							<span class="fleft"><a href="/people/{uid}/" >{username}</a>&nbsp;<span class=" ml8">{addtime}</span><span class="stars{rating} stars" ></span></span>
							<input id="vote_{id}" value="{support}" type="hidden"/>
							<!--<span class="fright"><span class="votes pr5" id="vote_val_{id}">{support}</span><a href="javascript:;" onclick="voteComment({id});">有用</a></span>     把“有用功能屏蔽”-->
						</div>
						{contents}
						<div align="right"><a href="df">转发({rt})</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="df">收藏</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <a href="df">评论({comments})</a></div>
					</div>	
				</div>
				<div class="clear"></div>
				<!-- END comment -->
				
			</ul>
		</div>
        <div id="cBox_2" class="content cBox">
			<!-- IF friendComments -->
			<!-- BEGIN friendComments -->
				<div class='ctsh' style="float:left;margin-bottom:10px;border-bottom:1px #ccc dashed;padding-bottom:10px">
					<div style="float:left;width:55px;padding-top:5px">
						<a href="/people/{uid}/"><img class="pil" src="{PUB}avatars/{avatars}"/></a>
					</div>
					<div style="float:right;;width:535px;">
						<div class="clearfix">
							<span class="fleft"><a href="/people/{uid}/">{username}</a>&nbsp;<span class=" ml8">{addtime}</span><span class="stars{rating} stars" ></span></span>
							<input id="vote_{id}" value="{support}" type="hidden"/>
							<span class="fright"><span class="votes pr5" id="vote_val_{id}">{support}</span><a href="javascript:;" onclick="voteComment({id});">有用</a></span>
						</div>
						{contents}
					</div>	
				</div>
				<div class="clear"></div>
			<!-- END friendComments -->
			<!-- ELSE -->
			您还未登录，登录后才能看到您朋友的短评。
			<!-- ENDIF friendComments -->
		</div>
		<div class="clear"></div>
    </div>

	<!--影评-->
	<h2 class="clearfix"><span class="ll">{title}的影评&nbsp;</span>
	<a class="rr" href="/review/new/{id}/">我来写影评 &raquo;</a>
	</span></a>
	
	</h2> 
	<div class="tab_area">
        <ul class="tabs">
            <li><a href="javascript:void(0)" title="rBox_1" class="tab active rTab" onfocus="this.blur()">热门的影评</a></li>
            <li><a href="javascript:void(0)" title="rBox_2" class="tab rTab"  onfocus="this.blur()">最新的影评</a></li>
        </ul> 

        <div id="rBox_1" class="content rBox">
			<!-- BEGIN hot_reviews -->
			<div class='ctsh'>
			<ul class="tlst clearfix" style="clear:both">
				<li class="nlst">
					<h3><a href="/review/{id}/">{title}</a><div class="rr"><a href="/review/{id}/"><img src="{PUB}img/arrow2.gif"/></a></div></h3>
				</li>
				<li class="ilst" style="clear:both;"><a href="/people/{uid}/"><img class="pil" src="{PUB}avatars/{avatars}"/></a></li>
				<li class="clst">
					<span class="pl ll obss"><span class="starb">
					<a href="/people/{uid}/">{username}</a> &nbsp;</span><span class="stars{rating} stars"></span></span><br/><br/>
					<div>{contents}...... 
					<a class="pl" href="/review/{id}/">({reply}回应)</a><br/>
					<div class="pl clearfix"><span class="fleft">{addtime} &nbsp; &nbsp;</span></div></div>
				</li>
			</ul>
			</div>
			<div class="clear"></div>
			<!-- END hot_reviews -->		
			<p class="pl" align="right">&gt; <a href="/movie/{id}/reviews/">更多影评(共{review}条)</a></p>			
		</div>

		<div id="rBox_2" class="content rBox">
			<!-- BEGIN new_reviews -->
			<div class='ctsh'>
			<ul class="tlst clearfix" style="clear:both">
				<li class="nlst">
					<h3><a href="/review/{id}/">{title}</a><div class="rr"><a href="/review/{id}/"><img src="{PUB}img/arrow2.gif"/></a></div></h3>
				</li>
				<li class="ilst" style="clear:both;"><a href="/people/{uid}/"><img class="pil" src="{PUB}avatars/{avatars}"/></a></li>
				<li class="clst">
					<span class="pl ll obss"><span class="starb">
					<a href="/people/{uid}/">{username}</a> &nbsp;</span><span class="stars{rating} stars"></span></span><br/><br/>
					<div>{contents}...... 
					<a class="pl" href="/review/{id}/">({reply}回应)</a><br/>
					<div class="pl clearfix"><span class="fleft">{addtime} &nbsp; &nbsp;</span></div></div>
				</li>
			</ul>
			</div>
			<div class="clear"></div>
			<!-- END new_reviews -->		
			<p class="pl" align="right">&gt; <a href="/movie/{id}/reviews/">更多影评(共{review}条)</a></p>	
		</div>

	</div>
</div>
</div>

 
<div class="aside">
<h2>走势...(最近2周)</h2>
<div class="indent" id="collector">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0"
width="321" height="200" id="chart" align="middle">
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="{PUB}swf/open-flash-chart.swf"/>
<param name="FlashVars" value="data-file=/movie/{id}/ratingcount/{ftimes}/"/>
<param name="quality" value="high"/>
<param name="bgcolor" value="#FFFFFF"/>
<embed src="{PUB}swf/open-flash-chart.swf" FlashVars="data-file=/movie/{id}/ratingcount/{ftimes}/"
quality="high" bgcolor="#FFFFFF" width=321 height=200
name="chart" align="middle" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"/>
</object>
</div>

<h2>你的朋友中，谁看过该电影？</h2>
<!-- BEGIN friendCollect -->
<dl class="ob"><dt><a  href=""><img src="{PUB}avatars/{avatars}" class="m_sub_img"/></a></dt>
<dd><a href="/people/{uid}">{username}</a>
</dd></dl>
<!-- END friendCollect -->
<div class="clear"></div>

<h2>你的朋友中，谁想看该电影？</h2>
<!-- BEGIN friendWish -->
<dl class="ob"><dt><a  href=""><img src="{PUB}avatars/{avatars}" class="m_sub_img"/></a></dt>
<dd><a href="/people/{uid}">{username}</a>
</dd></dl>
<!-- END friendWish -->
<div class="clear"></div>


</div>
</div>
</div>


<!-- INCLUDE ../footer.htm -->       
</body></html>